﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using App.BaseObject;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace App.Goods
{
    /// <summary>
    /// 产品
    /// </summary>
    public class Product : AuditedEntity, IMayHaveTenant
    {
        [StringLength(ColumnSetting.Longer)]
        public virtual string GoodsName { get; set; }
        public virtual decimal Price { get; set; }
        [StringLength(ColumnSetting.Url)]
        public virtual string Photo { get; set; }
        public virtual string Content { get; set; }
        public virtual ProductBrand Brand { get; set; }
        public virtual ICollection<ProductCategory> Categorys { get; set; }
        public virtual int? TenantId { get; set; }
    }
}
